package com.log4jviewer.domain;

/**
 * Utility class, which provides string validation and manupulation.
 * 
 * @author <a href="mailto:rd.ryly@gmail.com">Ruslan Diachenko</a>
 */
public final class StringUtility {

    private StringUtility() {
        // no code
    }

    public static String emptyStringIfNull(final String fieldInfo) {
        String currentFieldInfo = fieldInfo;

        if (currentFieldInfo == null) {
            currentFieldInfo = "";
        }
        return currentFieldInfo;
    }
}
